/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

import org.hibernate.validator.constraints.Length;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * bannerEntity
 * @author rongjie
 * @version 2017-08-06
 */
public class WxBanner extends DataEntity<WxBanner> {
	
	private static final long serialVersionUID = 1L;
	private String image;		// 图片
	private String phat;		// 跳转
	
	public WxBanner() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxBanner(String id){
		super(id);
	}

	@Length(min=1, max=300, message="图片长度必须介于 1 和 300 之间")
	@ExcelField(title="图片", align=2, sort=1)
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	@ExcelField(title="跳转", align=2, sort=8)
	public String getPhat() {
		return phat;
	}

	public void setPhat(String phat) {
		this.phat = phat;
	}
	
}